import {GameObject} from './GameObject.js';

export class Wall extends GameObject{
  constructor(r,c,gamemap){
    super();
    this.r = r;
    this.c = c;
    this.gamemap = gamemap;
    this.color='#B37226';
  }

  update(){
    this.render();
  }

  render(){
    this.L=this.gamemap.L;
    const ctx=this.gamemap.ctx;

    ctx.fillStyle = this.color;
    ctx.fillRect(this.c*this.L, this.r*this.L, this.L, this.L);
  }
}